$(document).ready(function()
	{  
		$("input#author").autocomplete(listeAuthors,{max:10,autoFill: true,minChars: 0});
		$("input#serie").autocomplete(listeSeries,{max:10,autoFill: true,minChars: 0});
		$("input#publisher").autocomplete(listePublishers,{max:10,autoFill: true,minChars: 0});
		
		$("form.formSelectAuthor").validate({
			rules: {
				element: {
					required: true
				}
			},
			messages: {
				element: {
					required: "&nbsp;&nbsp;&nbsp;Requis"
				}
			}
		});
		$("form.formSelectSerie").validate({
			rules: {
				element: {
					required: true
				}
			},
			messages: {
				element: {
					required: "&nbsp;&nbsp;&nbsp;Requis"
				}
			}
		});
		$("form.formSelectPublisher").validate({
			rules: {
				element: {
					required: true
				}
			},
			messages: {
				element: {
					required: "&nbsp;&nbsp;&nbsp;Requis"
				}
			}
		});
		
		$("input#authors").focus();
	}
);